home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / text / hyper / ADtoHT2_0.lha / lmkfile < prev    next >
Encoding:
Text File  |  1995-03-22  |  2.1 KB  |  69 lines

  1. # Makefile for Lattice make with SAS/C V5.10b
  2.  
  3. DISTFILE   = ADtoHT2_0.lha
  4.  
  5. EXEC       = ADtoHT
  6.  
  7. SOURCES    = AdditionalDocs.c Autodocs.c AVL.c File.c FormatNode.c Includes.c main.c ProcessDir.c
  8. HEADERS    = AdditionalDocs.h Autodocs.h AVL.h File.h FormatNode.h Includes.h main.h ProcessDir.h
  9. LIB        = MyLib1_0.lha
  10.  
  11. DIGEST     = md5.Digest
  12.  
  13. # Stupid command line restrictions drive me crazy
  14. DISTFILES1 = $(EXEC) $(SOURCES) lmkfile Makefile
  15. DISTFILES2 = $(HEADERS) ADtoHT.guide MyLib.lha
  16. DISTFILES  = $(DISTFILES1) $(DISTFILES2)
  17.  
  18. CC = lc
  19. CFLAGS = -v -ms -cfs -iINCLUDE:MyLib/
  20.  
  21. OBJS = main.o File.o Includes.o ProcessDir.o AVL.o Autodocs.o AdditionalDocs.o FormatNode.o
  22.  
  23. all: ADtoHT
  24.  
  25.  .c.o:
  26.     $(CC) $(CFLAGS) $*
  27.  
  28. MyLib.lha: $(LIB)
  29.     lha -a e $(LIB) $@
  30.  
  31. ADtoHT: $(OBJS)
  32.     blink TO ADtoHT LIB SAS5bs/MyLib.lib LIB:amiga.lib LIB:lc.lib SC SD NOICONS <WITH <
  33.         FROM SAS5bs/MyStartup.o $(OBJS)
  34.     <
  35.  
  36. $(DIGEST): $(DISTFILES)
  37.     pgp -kxa stieber stieber
  38.     echo >.$(DIGEST) "^^^ Anything above this line has been hacked! ^^^*n"
  39.     md5sum >>.$(DIGEST) -b $(DISTFILES1)
  40.     md5sum >>.$(DIGEST) -b $(DISTFILES2)
  41.     join .$(DIGEST) stieber.asc TO $(DIGEST)
  42.     Delete >NIL: .$(DIGEST) stieber.asc
  43.     pgp <>KCON:0/16/640/150/PGP -sat +clearsig=on $(DIGEST)
  44.     Delete >NIL: $(DIGEST)
  45.     Rename >NIL: $(DIGEST).asc $(DIGEST)
  46.     Protect $(DIGEST) rwd        # AmigaOS is stupid
  47.  
  48. clean:
  49.     -Delete $(OBJS) $(EXEC) $(LIB) $(DISTFILE) $(DIGEST) .$(DIGEST) $(DIGEST).asc MyLib.lha
  50.  
  51. dist: $(DISTFILE)
  52.  
  53. $(DISTFILE): $(DIGEST)
  54.     -Delete >NIL: $(DISTFILE)
  55.     lha -AZar a $(DISTFILE) <@<
  56.         $(DISTFILES) $(DIGEST)
  57.     <
  58.  
  59. # Dependencies
  60.  
  61. main.o: main.c main.h AVL.h File.h Includes.h ProcessDir.h Autodocs.h AdditionalDocs.h
  62. ProcessDir.o: ProcessDir.c main.h AVL.h ProcessDir.h
  63. File.o: File.c main.h AVL.h File.h
  64. Autodocs.o: Autodocs.c Includes.h main.h AVL.h File.h Autodocs.h FormatNode.h AdditionalDocs.h
  65. AVL.o: AVL.c AVL.h
  66. Includes.o: Includes.c main.h AVL.h File.h ProcessDir.h Includes.h Autodocs.h FormatNode.h AdditionalDocs.h
  67. AdditionalDocs.o: AdditionalDocs.c main.h AVL.h File.h AdditionalDocs.h Includes.h Autodocs.h FormatNode.h
  68. FormatNode.o: FormatNode.c main.h AVL.h File.h FormatNode.h
  69.